﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UniversalPrinter;
using System.Configuration;
using System.Diagnostics;
using System.IO;

namespace ConsoleDemo
{
    class Program
    {
        static void Main(string[] args)
        {
            using (DocumentPrinter docPrint = new DocumentPrinter())
            {
                docPrint.FileName = args[0];
                docPrint.PrinterName = args[1];
                docPrint.Print();
                Console.WriteLine(docPrint.PrintResult);
            }
        }
    }
}
